package es.udc.mashup.discountservice;

import es.udc.mashup.discountservice.model.DiscountTO;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author eugenio.novas
 */
@WebService()
public class DiscountClient {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getDiscount")
    public DiscountTO getDiscount(@WebParam(name = "idClient") String idClient,
            @WebParam(name = "idProduct") String idProduct,
            @WebParam(name = "cost") int cost) {

        DiscountTO discount = new DiscountTO();
        discount.setDiscount(10);
        discount.setType("DISCOUNT");
        
        return discount;
    }





}
